package com.yikome.purchase.entity;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

import com.yikome.common.BaseEntity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@NoArgsConstructor
@Entity
@Table(name = "p_purchase_product" , indexes = {@Index(columnList="purchaseCode") , @Index(columnList="productId") , @Index(columnList="productSkuBarcode")})
public class PurchaseProduct extends BaseEntity{

	private static final long serialVersionUID = 6985543698954204900L;

	private String purchaseCode ; 
	
	private Long productId;
	
	private String productTitle;
	
	private Long productSkuId ; 
    
    private String productSkuBarcode;
    
    private String productSkuName;
    
    private String productSkuImage ;
    // 采购单价
    private BigDecimal purchasedPrice;
    
    private Integer purchasedQuantity;
    
    private Integer storagedQuantity;
    
    private Integer cancelQuantity ; 
}
